﻿using Craftsman.Core.DapperExtensions;
using System.Collections.Generic;

namespace Craftsman.xCoronavirus.Domain.Entities
{
    [Table("questionnaire")]
    public class Questionnaire : BaseEntity
    {
        [Column("status")]
        public QuestionnaireStatus Status { get; set; }
        [Column("start_time")]
        public System.DateTime StartTime { get; set; }
        [Column("end_time")]
        public System.DateTime EndTime { get; set; }
        [Column("form_code")]
        public string FormCode { get; set; }
        [Column("created_time")]
        public System.DateTime CreatedTime { get; set; }
        [NotMapped]
        public QuestionnaireHospital Hospital { get; set; }
        [NotMapped]
        public List<QuestionnaireContact> Contacts { get; set; }
        [NotMapped]
        public List<QuestionnaireMaterialDemand> MaterialDemands { get; set; }
    }
}
